#ifndef PUMPPRESSURECALIBRATIONPAGE_H
#define PUMPPRESSURECALIBRATIONPAGE_H

#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QLineEdit>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QTableView>
#include "tableviewex.h"
#include "modulehplcpumpdefine.h"

class HplcPumpPressureCalibrationPage : public QWidget
{
    Q_OBJECT
public:
    HplcPumpPressureCalibrationPage(QWidget *parent = nullptr);
    virtual ~HplcPumpPressureCalibrationPage() override;

public slots:
    QList<hplc::PumpPressureCalibData> getData();
    void onSetData(const QList<hplc::PumpPressureCalibData> &list);

protected:
    virtual void closeEvent(QCloseEvent *event) override;

public slots:
    void onParseCompleted(int id, const QVariant &var);

private:
    TableViewEx      *m_tableView;

    QPushButton                 *m_pbWorkMode;
    QPushButton                 *m_pbSet;
    QPushButton                 *m_pbGet;

    // 零点电压
    QLabel *m_lbVoltage;
    QLineEdit *m_leVoltage;
    QHBoxLayout *m_hblVoltage;
};

#endif // PUMPPRESSURECALIBRATIONPAGE_H
